Software Article | Open Access
Volume 2026 |Article ID 100092 | https://doi.org/10.1016/j.plaphe.2025.100092

LeafGen: Structure-aware Leaf Image Generation for Annotation-free Leaf Instance Segmentation

Naoki Asada,1,4 Xinpeng Liu,1,4 Kanyu Xu,1,4 Ryohei Miyakawa,1 Yang Yang,1 Hiroaki Santo,1 Yosuke Toda,2,3 and Fumio Okura 1

1Graduate School of Information Science and Technology, The University of Osaka, Suita, Osaka, Japan
2Phytometrics, Hamamatsu, Shizuoka, Japan
3Institute of Transformative Bio-Molecules, Nagoya University, Nagoya, Aichi, Japan
4These authors contributed equally to this work.

Received 
28 Nov 2024
Accepted 
17 Jul 2025
Published
29 Sep 2025

Abstract

Instance segmentation of plant leaves plays a crucial role in plant phenotyping, leveraging the rapid advancements in neural network research. A significant challenge in leaf instance segmentation lies in the preparation of training datasets, which typically require manual annotations comprising numerous pairs of ground-truth masks and corresponding plant photographs. Recently, segmentation models pre-trained on large-scale datasets, e.g., Segment Anything, have enabled training-free (i.e., zero-shot) instance segmentation accessible to the public. However, applying these models to leaf segmentation often yields unsatisfactory results, as the training datasets for these foundation models may lack sufficient plant imagery to accurately segment leaves exhibiting heavy occlusions and similar textures. To address this issue, we propose a fully automatic method for generating training datasets for leaf instance segmentation, combining an off-the-shelf zero-shot model with structure-aware image generation. Specifically, given a set of plant images and an L-system growth rule representing the structural pattern of the target plant, the proposed method automatically produces an arbitrary number of instance mask and photorealistic plant image pairs, eliminating the need for manual annotation. To maximize usability, we also provide a GUI front-end that integrates the entire pipeline of our method. Experiments on Arabidopsis, Komatsuna, and Rhaphiloepsis plants demonstrate that our method achieves more accurate segmentation compared to state-of-the-art zero-shot models, attaining AP@50 scores of 74.8, 76.0, and 88.2 for leaf instance segmentation of Arabidopsis, Komatsuna, and Rhaphiloepsis, respectively—without any manual annotation.

© 2019-2023   Plant Phenomics. All rights Reserved.  ISSN 2643-6515.

Back to top